<?php 
session_start();

if(!isset($_SESSION['id'])){
	header('Location:login.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.6.3.min.js"></script>
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">升级管理</a></li>
    <li><a href="#">查看升级</a></li>			
    </ul>
    </div>
	
    <div class="formbody">
    <div class="formtitle"><span>基本信息</span></div>
	<?php
	 $array=array();
	 $handle = fopen("about_shenji.conf", "r");
	 while (!feof ($handle)){
		 $buffer  = fgets($handle);
		 array_push($array,$buffer);
     }
	
	#得到配置文件中的信息
	
	$get_version=$array[2];
	$rel_version=substr($get_version,8);
    echo "当前版本号为:".$rel_version."<br/><br/>";
	
	$get_status=$array[1];
	$rel_status=substr($get_status,7);
	
	$get_shenjibao=$array[3];
	$rel_shenjibao=substr($get_shenjibao,10);
	if(intval($rel_status)==2){
		
		echo "升级失败版本:".$rel_shenjibao;
	}
	
	?>
	
    </div>

</body>

</html>





